from typing import Optional
from pydantic import BaseModel
from src.enums.task import ResultDataTypeEnum

class ResultDataBase(BaseModel):
    data_type: ResultDataTypeEnum
    type_version: str
    is_over: int

class TaskResult(BaseModel):
    task_params: Optional[dict] = None
    task_status: int
    reason: Optional[str] = None
    exec_time: Optional[str] = None
    result_data: Optional[dict] = None

class TaskUUId(BaseModel):
    task_uuid: str

